<template>
  <div class="panel">
    <div class="inner">
      <slot></slot>
    </div>
  </div>
</template>

<script setup name="PanelLayout"></script>

<style lang="scss" scoped>
.panel {
  box-sizing: border-box;
  border: 2px solid red;
  border-image: url('@/assets/images/border.png') 51 38 21 132;
  border-width: 46px 34px 19px 119px;
  position: relative;
  width: 100%;
  height: 100%;
  .inner {
    /* 装内容 */
    /* height: 60px; */
    position: absolute;
    top: -46px;
    right: -34px;
    bottom: -19px;
    left: -119px;
    padding: 21.6px 32.4px;
  }
}
</style>
